package com.ruoyi.binance.service;

import java.util.List;

import com.alibaba.fastjson2.JSONArray;
import com.ruoyi.binance.domain.BinancePriceMonitoring;

/**
 * 日均价监控Service接口
 * 
 * @author zq
 * @date 2025-08-05
 */
public interface IBinancePriceMonitoringService 
{
    /**
     * 查询日均价监控
     * 
     * @param code 日均价监控主键
     * @return 日均价监控
     */
    public BinancePriceMonitoring selectBinancePriceMonitoringByCode(String code);

    /**
     * 查询日均价监控列表
     * 
     * @param binancePriceMonitoring 日均价监控
     * @return 日均价监控集合
     */
    public List<BinancePriceMonitoring> selectBinancePriceMonitoringList(BinancePriceMonitoring binancePriceMonitoring);

    /**
     * 新增日均价监控
     * 
     * @param binancePriceMonitoring 日均价监控
     * @return 结果
     */
    public int insertBinancePriceMonitoring(BinancePriceMonitoring binancePriceMonitoring);

    /**
     * 修改日均价监控
     * 
     * @param binancePriceMonitoring 日均价监控
     * @return 结果
     */
    public int updateBinancePriceMonitoring(BinancePriceMonitoring binancePriceMonitoring);

    /**
     * 批量删除日均价监控
     * 
     * @param codes 需要删除的日均价监控主键集合
     * @return 结果
     */
    public int deleteBinancePriceMonitoringByCodes(String[] codes);

    /**
     * 删除日均价监控信息
     * 
     * @param code 日均价监控主键
     * @return 结果
     */
    public int deleteBinancePriceMonitoringByCode(String code);

    public JSONArray chart(String code, String startTime, String endTime);

    public JSONArray macd15(String code, String startTime, String endTime);
}
